package com.five.service.impl;

import com.five.dao.TravelCommentsMapper;
import com.five.entity.TravelComments;
import com.five.service.TravelCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/2/27.
 */
@Service("TravelCommentService")
public class TravelCommentServiceImpl implements TravelCommentService {

    @Autowired
    private TravelCommentsMapper travelCommentsMapper;

    @Override
    public void addTravelComment(TravelComments travelComments) {
        travelCommentsMapper.insertSelective(travelComments);
    }

    @Override
    public TravelComments selectByPrimaryKey(Integer id) {
        return travelCommentsMapper.selectByPrimaryKey(id);
    }
}
